package br.net.woodstock.tickettoride.web.seam.security;

import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;

import br.net.woodstock.tickettoride.api.access.UserService;
import br.net.woodstock.tickettoride.orm.User;
import br.net.woodstock.tickettoride.web.jsf.security.common.AbstractLoginBean;

@Name("loginBean")
@Scope(ScopeType.EVENT)
public class LoginBean extends AbstractLoginBean {

	private static final long	serialVersionUID	= -3125757940452936893L;

	@In("#{userService}")
	private UserService			userService;

	@Override
	public UserService getUserService() {
		return this.userService;
	}

	@Override
	public void onLogin(final User user) {
		//
	}

	@Override
	public void onLogout(final User user) {
		//
	}

}
